'use strict';
const db = uniCloud.database();
// 获取 `user` 集合的引用
const collection = db.collection('walllist');
const dbCmd = db.command;
exports.main = async (event, context) => {
	let {classid,pageNum} = event
	pageNum = (pageNum-1)*12-0
	let walllist = await collection.where({
		classid: dbCmd.eq(classid)
		}).skip(pageNum).limit(12).get()
	//返回数据给客户端
	return walllist
};
